package com.yj.web.util;

/**
 * Created with IntelliJ IDEA.
 * Employee: yesiming
 * Date: 13-11-6
 * Time: 下午5:32
 * To change this template use File | Settings | File Templates.
 */
public class WebErrorCode {

    /* 100<系统级错误<1000 */
    // 系统异常
    public static final int E_SYS_EXP = 101;
    public static final int E_SYS_NOT_LOGGED_IN = 102;

    /* 200<用户权限错误<1000 */
    // 权限不够
    public static final int E_NO_AUTHORITY = 201;

    /* 1000<业务错误<10000 */
    // 登录参数错误
    public static final int E_BIZ_LOGIN_INVALID_PARAMS = 1001;
    // 用户不存在
    public static final int E_BIZ_LOGIN_USER_NOT_EXIST = 1002;
    // 密码错误
    public static final int E_BIZ_LOGIN_INVALID_PWD = 1003;
    // 登录失败
    public static final int E_BIZ_LOGIN_FAILED = 1004;

    // 参数错误
    public static final int E_BIZ_INVALID_PARAMS = 1005;

    // 文件类型错误
    public static final int E_BIZ_INVALID_CSV_FILE_TYPE = 1006;
    // 邀请太频繁
    public static final int E_BIZ_FREQUENTLY_INVITED = 1007;
    // 错误的email或手机号
    public static final int E_BIZ_INVALID_PARAM_EMAILS_OR_PHONENUMS = 1008;
    // 错误的文件参数
    public static final int E_BIZ_INVALID_PARAM_CSV_FILE = 1009;
    // 超过最大的邀请限制
    public static final int E_BIZ_INVITE_TOO_MANY = 1010;

    // 上传的参数错误
    public static final int E_BIZ_UPLOAD_INVALID_PARAM = 1011;
    // 上传文件太大
    public static final int E_BIZ_UPLOAD_FILE_TOO_LARGE = 1012;
    // 上传头像失败
    public static final int E_BIZ_UPLOAD_HEAD_FAILED = 1013;
    // 上传头像频率太快
    public static final int E_BIZ_UPLOAD_HEAD_FREQUENTLY = 1014;
    // 上传文件类型错误
    public static final int E_BIZ_UPLOAD_INVALID_FILE_TYPE = 1015;

    // 操作频率太快
    public static final int E_BIZ_OPERATING_FREQUENTLY = 1016;

    // 验证码发送失败
    public static final int E_BIZ_SEND_VERIFY_CODE_FAILED = 1017;
    // 手机号已经被注册
    public static final int E_BIZ_ACCOUNT_MOBILE_REGISTERED = 1018;


    // 短信发送失败
    public static final int E_BIZ_SEND_SMS_FAILED = 1020;


}
